package com.yudean.esb.domain.esb;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : DL<duanlei@gdyd.com>
 * @version : 1.0
 */
public class EsbDataSource implements Serializable {
    private static final long serialVersionUID = 5735336052384564561L;
    private String ID;
    private String aliasName;
    private String description;
    private String DbType;
    private String JDBCClass;
    private String JDBCURL;
    private String JDBCUser;
    private String JDBCPassword;
    private String schemaPattern;
    private String enableFlag;
    private Date createTime;
    private Date updateTime;

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDbType() {
        return DbType;
    }

    public void setDbType(String dbType) {
        DbType = dbType;
    }

    public String getJDBCClass() {
        return JDBCClass;
    }

    public void setJDBCClass(String JDBCClass) {
        this.JDBCClass = JDBCClass;
    }

    public String getJDBCURL() {
        return JDBCURL;
    }

    public void setJDBCURL(String JDBCURL) {
        this.JDBCURL = JDBCURL;
    }

    public String getJDBCUser() {
        return JDBCUser;
    }

    public void setJDBCUser(String JDBCUser) {
        this.JDBCUser = JDBCUser;
    }

    public String getJDBCPassword() {
        return JDBCPassword;
    }

    public void setJDBCPassword(String JDBCPassword) {
        this.JDBCPassword = JDBCPassword;
    }

    public String getSchemaPattern() {
        return schemaPattern;
    }

    public void setSchemaPattern(String schemaPattern) {
        this.schemaPattern = schemaPattern;
    }

    public String getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(String enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EsbDataSource)) return false;

        EsbDataSource that = (EsbDataSource) o;

        if (DbType != null ? !DbType.equals(that.DbType) : that.DbType != null) return false;
        if (ID != null ? !ID.equals(that.ID) : that.ID != null) return false;
        if (JDBCClass != null ? !JDBCClass.equals(that.JDBCClass) : that.JDBCClass != null) return false;
        if (JDBCPassword != null ? !JDBCPassword.equals(that.JDBCPassword) : that.JDBCPassword != null) return false;
        if (JDBCURL != null ? !JDBCURL.equals(that.JDBCURL) : that.JDBCURL != null) return false;
        if (JDBCUser != null ? !JDBCUser.equals(that.JDBCUser) : that.JDBCUser != null) return false;
        if (aliasName != null ? !aliasName.equals(that.aliasName) : that.aliasName != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;
        if (enableFlag != null ? !enableFlag.equals(that.enableFlag) : that.enableFlag != null) return false;
        if (schemaPattern != null ? !schemaPattern.equals(that.schemaPattern) : that.schemaPattern != null)
            return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = ID != null ? ID.hashCode() : 0;
        result = 31 * result + (aliasName != null ? aliasName.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + (DbType != null ? DbType.hashCode() : 0);
        result = 31 * result + (JDBCClass != null ? JDBCClass.hashCode() : 0);
        result = 31 * result + (JDBCURL != null ? JDBCURL.hashCode() : 0);
        result = 31 * result + (JDBCUser != null ? JDBCUser.hashCode() : 0);
        result = 31 * result + (JDBCPassword != null ? JDBCPassword.hashCode() : 0);
        result = 31 * result + (schemaPattern != null ? schemaPattern.hashCode() : 0);
        result = 31 * result + (enableFlag != null ? enableFlag.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }
}